﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyTestProject
{
    public interface ICheckable
    {
        /// <summary>
        /// The item id in the dataset
        /// </summary>
        int ID { get; }

        /// <summary>
        /// The text upon we calculate the TF
        /// </summary>
        string Text { get; }

        /// <summary>
        /// The term frequency of the text
        /// </summary>
        Dictionary<string, double> TF { get; }

        /// <summary>
        /// Return true if a given word exists in the text
        /// </summary>
        /// <param name="word">The given word to check in the text</param>
        /// <returns></returns>
        bool Contains(string word);

        /// <summary>
        /// Return the number of occurrences of a given word
        /// </summary>
        /// <param name="word">The given word to check in the text</param>
        /// <returns></returns>
        int NumberOfOccurrences(string word);
    }
}
